<?php

namespace Muyuxuanpay\threePay\src\bft\protocolPayment;

use Muyuxuanpay\threePay\ProtocolPaymentNotify;
use Muyuxuanpay\threePay\BaseTrait;

class Notify implements ProtocolPaymentNotify
{
    use BaseTrait;
    use ProtocolPaymentTrait;
    public function verifyNotify(array $data)
    {
        if($this->VerifySign($data)){
            return $data;
        }else{
            throw new \Exception("验签失败");
        }
    }
    public function sendSuccess()
    {
        throw new \Exception("OK");
    }
    public function sendFail()
    {
        throw new \Exception("FAIL");
    }

}